<?php
namespace app\app\controller\v1;
use think\Db;
use app\app\util\OnlineUtils;
class AddressController extends  BaseController{

    /**
     * @return array
     * [大转盘收货地址 ]
     */
    public function giftAddress()
    {
        $gift_address['user_id'] = OnlineUtils::getUserIdBySid();
        $gift_address['name'] = input('post.name');
        $gift_address['address'] = input('post.address');
        $gift_address['phone'] = input('post.phone');
        $gift_address['gift'] = input('post.gift');
        $gift_address['created_at'] = time();
        DB::name('gift_address')->insertGetId($gift_address);
        return ft(200,'success',$gift_address);
    }


}